package com.example.dhhyc.demos.strategy.strategy2;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * Describe :
 * question :
 *
 * @auther BaiShanshan
 * @date 2024/5/2 8:21
 */
@Component
public class RateAmountHandler extends AbstractCalHandler{

    @Override
    public BigDecimal calShareAmount() {
        System.out.println("分润金额计算之计算比例逻辑");
        return new BigDecimal("1");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        HandlerCalFactory.register("1",this);
    }
}
